//
//  AppDelegate.m
//  QQ
//
//  Created by weida on 15/8/13.
//  Copyright (c) 2015年 weida. All rights reserved.
//  https://github.com/weida-studio/QQ

#import "AppDelegate.h"
#import "WSNavigationController.h"
#import "RESideMenu.h"
#import "WSLeftMenuController.h"
#import "NSObject+CoreDataHelper.h"
#import "XMGLoginController.h"

@interface AppDelegate ()




@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];

    self.window.backgroundColor = [UIColor whiteColor];
    
    self.window.rootViewController = [[WSNavigationController alloc] initWithRootViewController:[[XMGLoginController alloc ]init]];
    
    [self.window makeKeyAndVisible];
   
    return YES;
}



- (void)applicationWillTerminate:(UIApplication *)application
{
    [self saveContext];
}





@end
